package composite.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/12/1
 * @Modified By:
 */
public class Leaf implements ILeaf {

    private String name;
    private String position;
    private int salary = 0;

    public Leaf(String name, String position, int salary) {
        this.name = name;
        this.position = position;
        this.salary = salary;
    }


    @Override
    public String getInfo() {
        return "姓名：" + name + "\t 职位：" + position + "\t 薪水：" + salary;
    }
}
